function modelNameApiNameWxmlName(obj){
  return obj;
}
module.exports.modelNameApiNameWxmlName = modelNameApiNameWxmlName;

function trendFetchListIndex(obj) {
  obj.content.image = JSON.parse(obj.content.image);
  let counter = {};
  for (let i = 0; i < obj.counter.length; i++){
    counter[obj.counter[i]['name']] = obj.counter[i]['value'];
  }
  obj.counter = counter;
  return obj;
}
module.exports.trendFetchListIndex = trendFetchListIndex;

function trendFetchListDetail(obj) {
  obj.content.image = JSON.parse(obj.content.image);
  let counter = {};
  for (let i = 0; i < obj.counter.length; i++) {
    counter[obj.counter[i]['name']] = obj.counter[i]['value'];
  }
  obj.counter = counter;
  return obj;
}
module.exports.trendFetchListDetail = trendFetchListDetail;

function remarkFetchListDetail(obj) {
  let counter = {};
  for (let i = 0; i < obj.counter.length; i++) {
    counter[obj.counter[i]['name']] = obj.counter[i]['value'];
  }
  obj.counter = counter;
  return obj;
}
module.exports.remarkFetchListDetail = remarkFetchListDetail;

function trendFetchListFav(obj) {
  obj = obj.trend;
  obj.content.image = JSON.parse(obj.content.image);  
  let counter = {};
  for (let i = 0; i < obj.counter.length; i++) {
    counter[obj.counter[i]['name']] = obj.counter[i]['value'];
  }
  obj.counter = counter;
  return obj;
}
module.exports.trendFetchListFav = trendFetchListFav;